package com.lanxin.feignclient;

import com.lanxin.feignclient.hystrix.ProductServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by cyh on 2021/3/4.
 */
@Component
@FeignClient(value = "productservice",fallback = ProductServiceHystrix.class)
public interface ProductServiceClient {

    @RequestMapping("product/listproduct")
    public String listproduct();
}
